﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace DependencyAnalysis.DataModel
{
    [Serializable]
    [DataContract(IsReference = true)]
    [KnownType(typeof(ModuleDescriptor))]
    public class ProjectDescriptor : IDescriptor
    {
        [DataMember(Order = 1)]
        public string Identifier { get; set; }

        [DataMember(Order = 2)]
        public string FullName { get; set; }

        public IDescriptor Parent { get { return null; } }

        [DataMember(Order = 3)]
        public IEnumerable<ModuleDescriptor> Modules { get; set; }
    }
}